package com.xhu.water_supply.mapper;

import com.xhu.water_supply.dto.SalaryDTO;
import com.xhu.water_supply.entity.Salary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface SalaryMapper extends Mapper<Salary> {
    //刷新工资表
    int Refresh();

    //获取本月工资数据
    List<SalaryDTO> getDefault();

    //获取特定数据
    List<SalaryDTO> getSalary(@Param("month") Integer month, @Param("id") Integer id);

}